import axios from '../utils/axios';
const baseURL = '/api/comment/';

//获取父评论列表
export const getCommentByArticleIdApi = (data: any) => {
  return axios.post(`${baseURL}getCommentByArticleId`, data);
}


//添加评论
export const addCommentApi = (data: any) => {
  return axios.post(`${baseURL}addComment`, data);
}

//评论的举报加一
export const complaintCommentApi = (data: any) => {
  return axios.post(`${baseURL}complaintComment`, data);
}